package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.adjreport.PMAdjustmentReport;
import com.fis.hlo.pm.adjreport.PMAdjustmentReportService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class AdjustmentReportTransfererClient {
	private static final QName SERVICE_NAME = new QName(
			"http://adjreport.pm.hlo.fis.com/", "PMAdjustmentReportService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_ADJ_REPORT_PORT_KEY);

	public static PMAdjustmentReport getService() throws Exception {
		URL url = new URL(WSDL_URL);
		PMAdjustmentReportService ss = new PMAdjustmentReportService(url,
				SERVICE_NAME);
		PMAdjustmentReport port = ss.getPMAdjustmentReportPort();
		return port;
	}
}
